package com.zhao.dto;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.dto.SetmealDto;
import com.zhao.bean.PageParam;
import com.zhao.bean.Setmeal;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDao extends BaseMapper<Setmeal> {
    long findCategoryCountById(long cid);
    //     新增套餐
    int add (SetmealDto setmealDto);


    IPage<SetmealDto> findPage(PageParam pageParam);

    int delete(List<Long> ids);

    List<Setmeal> findCotegoryId(Long categoryId, int status);

    int updateStatus(List<Long> ids);

    int updateStatus1(List<Long> ids);

    int update(SetmealDto setmealDto);
}
